//获取应用实例
var app = getApp();
Page({
    data: {
        orderId:"",
        docList:""
    },
    onLoad: function () {
       var data =  app.getStorageSync(app.globalData.cacheOrderResKey);
        this.setData({
            "orderId": data.orderId,
            "cardName": data.cardName,
            "docList": data['docList'],
            "certPlaceCityName": data.certPlaceCityName,
            "certTypeId": data.certTypeId,
            "certTypeName": data.certTypeName,
        });
    },
    onHide:function () {
        app.removeStorageSync(app.globalData.cacheOrderResKey);
    },
    detailTap:function (e) {
        var orderId = e.target.dataset.id;
        console.log("datailTag");
        console.log(e.target.dataset);
        console.log(orderId);
        app.redirectTo({
            url: '../orderdetail/orderdetail?orderId='+orderId
        });
    }
});
